/**
 * Copyright  (c) 2009-2013 XLab,  Org. 
 * All  rights  reserved. 
 */
package org.xlab.baseframework.domain;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.persistence.Version;

/**
 * 抽象支持hibernate自动版本控制的类
 * 
 * @author MaKuBEX Email:makubexnet@gmail.com
 * @version 1.0.0 Sep 9, 2010
 * @since 1.0.0
 * 
 */
@MappedSuperclass
public abstract class AbstractNormalVersionControlDomainObject extends
		AbstractNormalDomainObject implements IVersionControlSupportedDomain {

	@Version
	@Column(name = "VERSION_", nullable = false)
	protected Integer version;

	/**
	 * @serialField
	 */
	private static final long serialVersionUID = 4834102104412110263L;

	/**
	 * @return the version
	 */
	public Integer getVersion() {
		return version;
	}

	/**
	 * @param version
	 *            the version to set
	 */
	public void setVersion(Integer version) {
		this.version = version;
	}
}
